package daily.play2;

import java.util.Arrays;

public class MyArrayListDemo1<E> {
    Object [] array = new Object[10];
    int size = 0;
    public boolean add(E e){
        array[size++] = e;
        return true;
    }
    public E get(int index){
        return (E) array[index];
    }
    public String toString(){
        return Arrays.toString(array);
    }
}
